7e6f562754715a8d23755e10a35117633b3a7e9a,hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java,AssignmentManager,doSplittingOfReplicas,#HRegionInfo#HRegionInfo#HRegionInfo#,2707
Before Change
// the replica1s of daughters will be on the same machine
int numReplicas = 1;
try {
numReplicas = ((MasterServices)server).getTableDescriptors().get(parentHri.getTable()).
getRegionReplication();
} catch (IOException e) {
LOG.warn("Couldn't get the replication attribute of the table " + parentHri.getTable() +
" due to " + e.getMessage() + ". The assignment of daughter replicas " +
After Change
// create new regions for the replica, and assign them to match with the
// current replica assignments. If replica1 of parent is assigned to RS1,
// the replica1s of daughters will be on the same machine
int numReplicas = getNumReplicas(server, parentHri.getTable());
// unassign the old replicas
List<HRegionInfo> parentRegion = new ArrayList<HRegionInfo>();
parentRegion.add(parentHri);